package com.gxa.modules.app.outpatient.onlinereturn.controller;


import com.gxa.common.utils.Result;
import com.gxa.modules.app.outpatient.onlinereturn.service.OnlienReturnService;
import com.gxa.modules.model.entity.fee.Patient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName PatientContorller
 * @Description
 * @Author Mr.YUAN
 * @Date 2022/11/12 11:33
 */
@RestController
@Api(tags = "在线退款接口")
@RequestMapping("/onlinereturn")
public class OnlienReturnContorller {
    @Autowired
    private OnlienReturnService onlienReturnService;

    @ApiOperation("退款")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query",name = "returnMoney",value = "退款金额",dataType = "double"),
            @ApiImplicitParam(paramType = "query",name = "id",value = "就诊人的id",dataType = "int"),
    })
    @GetMapping("/returnmoney")
    public Result returnMoney(double returnMoney ,Integer id){
        Result result = onlienReturnService.returnMoney(returnMoney, id);
        return result;
    }
}